class FatdepsController < ApplicationController
  active_scaffold :fatdep do |config|
    config.label = "Faturamentos Anteriores por Deposito"
    config.theme = :blue

    config.create.columns = [:total, :deposito]
    config.update.columns = [:total, :deposito]
    config.list.columns = [:total, :deposito, :fatant]

    config.columns[:deposito].ui_type = :select

    config.list.per_page = Setting.new.qtd_porpagina
    config.create.link.label = "NOVO"
    config.search.link.label = "BUSCA"
    config.update.link.label = "Editar"
    config.show.link.label = "Mostrar"
    config.delete.link.label = "Apagar"
    config.delete.link.confirm = "Apagar?"
  end
end
